package cn.ording.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * Food entity. @author MyEclipse Persistence Tools
 */

public class Food  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String cname;
     private String picture;
     private Double price;
     private String des;
     private String unit;
     private Set sorts = new HashSet(0);
     private Set burdings = new HashSet(0);
     private Set recommonds = new HashSet(0);
     private Set foodOrders = new HashSet(0);
     private Set marks = new HashSet(0);


    // Constructors

    /** default constructor */
    public Food() {
    }

	/** minimal constructor */
    public Food(String name, String cname, Double price, String unit) {
        this.name = name;
        this.cname = cname;
        this.price = price;
        this.unit = unit;
    }
    
    /** full constructor */
    public Food(String name, String cname, String picture, Double price, String des, String unit, Set sorts, Set burdings, Set recommonds, Set foodOrders, Set marks) {
        this.name = name;
        this.cname = cname;
        this.picture = picture;
        this.price = price;
        this.des = des;
        this.unit = unit;
        this.sorts = sorts;
        this.burdings = burdings;
        this.recommonds = recommonds;
        this.foodOrders = foodOrders;
        this.marks = marks;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getCname() {
        return this.cname;
    }
    
    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getPicture() {
        return this.picture;
    }
    
    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Double getPrice() {
        return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDes() {
        return this.des;
    }
    
    public void setDes(String des) {
        this.des = des;
    }

    public String getUnit() {
        return this.unit;
    }
    
    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Set getSorts() {
        return this.sorts;
    }
    
    public void setSorts(Set sorts) {
        this.sorts = sorts;
    }

    public Set getBurdings() {
        return this.burdings;
    }
    
    public void setBurdings(Set burdings) {
        this.burdings = burdings;
    }

    public Set getRecommonds() {
        return this.recommonds;
    }
    
    public void setRecommonds(Set recommonds) {
        this.recommonds = recommonds;
    }

    public Set getFoodOrders() {
        return this.foodOrders;
    }
    
    public void setFoodOrders(Set foodOrders) {
        this.foodOrders = foodOrders;
    }

    public Set getMarks() {
        return this.marks;
    }
    
    public void setMarks(Set marks) {
        this.marks = marks;
    }
   








}